import request from '@/utils/axios'
import {
  URL_API
} from '@/utils/mUtils'
const base = URL_API()
//客户管理列表接口
export function CustomerList(params) {
  return request({
    url: `${base}/api/company/customer/list`,
    method: 'post',
    data: params,
  })
}

//客户管理创建接口
export function CustomerCreate(params) {
  return request({
    url: `${base}/api/company/customer/create`,
    method: 'post',
    data: params,
  })
}

//客户管理详情接口  
export function CustomerDetail(params) {
  return request({
    url: `${base}/api/company/customer/detail`,
    method: 'post',
    data: params,
  })
}

//客户管理详情接口  
export function CustomerUpdate(params) {
  return request({
    url: `${base}/api/company/customer/update`,
    method: 'put',
    data: params,
  })
}

//客户管理详情接口  
export function CustomerDelete(params) {
  return request({
    url: `${base}/api/company/customer/delete`,
    method: 'delete',
    data: params,
  })
}
//获取承运产品类型
export function getTransportsList(params) {
  return request({
    url: `${base}/api/transportType/options`,
    method: "post",
    data: params,

  });
}
//客户费用查看权限
export function getCustomerViewFreightAuthList(params) {
  return request({
    url: `${base}/api/company/customer/view_freight_auth`,
    method: "post",
    data: params,

  });
}

//订单列表接口
export function reqOrderFormData(params) {
  return request({
    url: `${base}/api/order/list`,
    method: 'post',
    data: params,
  })
}

//客户管理取消订阅接口
export function CustomerSubscription(params) {
  return request({
    url: `${base}/api/cainiao/cancel_subscription`,
    method: 'post',
    data: params,
  })
}

//获取大区
export function reqWebsiteList(params) {
  return request({
    url: `${base}/api/company/organizational/branch/website_list`,
    method: "post",
    data: params,

  });
}

//获取员工  
export function AdminBox(params) {
  return request({
    url: `${base}/api/admin/box`,
    method: "post",
    data: params,

  });
}
// 账号管理部分
// 账号管理列表
export function accountlist(params) {
  return request({
    url: `${base}/api/company/customer/account/list`,
    method: "post",
    data: params,

  });
}
// 账号创建接口
export function accountcreate(params) {
  return request({
    url: `${base}/api/company/customer/account/create`,
    method: "post",
    data: params,

  });
}
// 账号详情接口
export function accountdetail(params) {
  return request({
    url: `${base}/api/company/customer/account/detail`,
    method: "post",
    data: params,

  });
}
// 账号编辑接口
export function accountupdate(params) {
  return request({
    url: `${base}/api/company/customer/account/update`,
    method: "post",
    data: params,

  });
}
// 账号删除接口
export function accountdelete(params) {
  return request({
    url: `${base}/api/company/customer/account/delete`,
    method: "post",
    data: params,

  });
}

//获取客户名称
export function reqCustomerName(params) {
  return request({
    url: `${base}/api/company/customer/box`,
    method: "post",
    data: params,
  });
}
//修改个人客户信息
export function CustomerAccountModify(params) {
  return request({
    url: `${base}/api/company/customer/account/modify`,
    method: "post",
    data: params,
  });
}
// 待导出数据
export function stay_list_export(params) {
  return request({
    url: `${base}/api/examine/record/stay/list/export`,
    method: "post",
    data: params,
  });
}
// 已导出数据
export function already_list_export(params) {
  return request({
    url: `${base}/api/examine/record/already/list/export`,
    method: "post",
    data: params,
  });
}
// 抄送导出数据
export function cpeople_list_export(params) {
  return request({
    url: `${base}/api/examine/record/cpeople/list/export`,
    method: "post",
    data: params,
  });
}
// 由我发起导出数据
export function initiate_list_export(params) {
  return request({
    url: `${base}/api/examine/record/initiate/list/export`,
    method: "post",
    data: params,
  });
}
// 大区的检测
export function regional_monthly_payment_check(params) {
  return request({
    url: `${base}/api/finance/regional_monthly_payment/check`,
    method: "post",
    data: params,
  });
}